package com.ayf.payment.game.api.bean;

import com.ayf.payment.game.api.type.AuthorizationType;
import com.swwx.charm.commons.lang.base.BasicTO;

import java.security.Principal;

public class AuthorizationInfo extends BasicTO implements Principal {
    private static final long serialVersionUID = 1L;
    private AuthorizationType authType;
    private String authValue;


    public AuthorizationInfo() {
    }

    public AuthorizationType getAuthType() {
        return this.authType;
    }

    public void setAuthType(AuthorizationType authType) {
        this.authType = authType;
    }

    public String getAuthValue() {
        return this.authValue;
    }

    public void setAuthValue(String authValue) {
        this.authValue = authValue;
    }

    public String getName() {
        return this.authType.toString();
    }
}

